#ifndef __HAVE_SPRITESHEET
#define __HAVE_SPRITESHEET

#include "renderer.h"
#include "logger.h"
#include "constants.h"


class Spritesheet
{
    int block_size;
    SDL_Surface * spritesheet;
    SDL_Surface ** sprites;
public:
    Spritesheet(const char * filename, const int block_size, bool transparent = true);
    ~Spritesheet();
    SDL_Surface * operator[](const int x);
    SDL_Surface * operator()(const int x, const int y);
};

#endif
